
public class Consumer implements Runnable{
	private Clerk clerk;

	public Consumer(Clerk clerk){
		this.clerk=clerk;
	}
	public void run(){
		System.out.println("loss product");

		for(int product=1;product<10;product++){
			try{
				Thread.sleep((int)Math.random()*3000);
			}
			catch(InterruptedException e){
				e.printStackTrace();
			}

			clerk.getProduct();
		}
	}


}